package org.belkodevelop.mail;

import java.util.HashMap;
import java.util.Map;


public class Mail {
    
    private Map<String, Object> model;
    private String[] to;
    private MailTemplate template;
    
    public Mail(String[] to, MailTemplate template) {
        model = new HashMap<String, Object>();
        this.to = to;
        this.template = template;
    }
    
    public Map<String, Object> getModel() {
        return model;
    }
    
    public void addObject(String name, Object obj) {
        model.put(name, obj);
    }
    
    public String[] getTo() {
        return to;
    }    
    
    public void setTemplate(MailTemplate template) {
        this.template = template;
    }
    
    public MailTemplate getTemplate() {
        return template;
    }
}
